7.4 EMP_save_var
Thanks to the magrittr package’s pipe operator and the tidyverse syntax ecosystem, many data analysis workflows are being completed seamlessly using pipes. However, during a pipeline, if users need to save intermediate results to an environment variable for use in subsequent analyses, they often need to assign the result manually, disrupting the flow. The EMP_save_var function addresses this by allowing users to save the current result directly within the pipeline, ensuring a smooth and uninterrupted analysis process.
🏷️Example:
data(MAE)
MAE |>
EMP_assay_extract('geno_ec') |>
EMP_save_var('temp_data') |>
EMP_diff_analysis(method='DESeq2',.formula = ~Group) |>
EMP_save_var('diff_result',get_result = TRUE) |>
EMP_heatmap_plot()
## EMPT object
temp_data
## analysis result
diff_result